package com.nsi.o2o.util;

/**
 * @author: Luo Zhen
 * @date: 2018/9/16 19:18
 * @description: 分页参数类
 */
public class PageCalculator {

    public static int calculateRowIndex(int pageIndex, int pageSize) {
        return (pageIndex > 0) ? (pageIndex - 1) * pageSize : 0;
    }
}
